home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1988 / Jan 88 / Color printing 1⁄12 < prev    next >
Encoding:
Text File  |  1991-03-06  |  2.4 KB  |  52 lines  |  [TEXT/GEOL]

  1. Item    1081723                         12-Jan-88        21:56
  2.  
  3. From:   MACDTS                          Macintosh Developer Technical Supt.
  4.  
  5. To:     WILSON6                         Wilson, Dave - Personal Concepts
  6.         D0830                           Data Translation, Dev, R Burger
  7.         MACAPP$                         MacApp Interest List
  8.  
  9. Sub:    Color printing(or the lack of)
  10.  
  11. To: D0830
  12.  
  13.     Dave,
  14.  
  15.     The problem you are having with printing PixMaps has to do with the Print
  16. Manager's GrafProcs that are installed into the Print Manager's GrafPort.  This
  17. GrafPort is the one returned by PrOpenPage.  The problem is that the GrafProcs
  18. do not know about the new Color Quickdraw PixMaps.  Since the GrafPort returned
  19. by the Print Manager is an old-style GrafPort, the Print Shop did not expect
  20. applications to be performing Color Quickdraw operations in that port.  This is
  21. a problem that will be fixed at some point in the future, but for now, there
  22. are only two 'safe' ways to print PixMaps.
  23.  
  24.     The first method is what you are using now.  Because you have SetPort to
  25. something other than the Print Manager's GrafPort, you are using the default,
  26. CQD GrafProcs.  These perform the depth conversion that you want.  Once the
  27. depth conversion has been performed, you can then CopyBits the B&W bitmap back
  28. into the Print Manager's GrafPort.  But because the Print Manager's GrafPort is
  29. still and old style GrafPort, remember that the destination map is BitMap, not
  30. a PixMap.  Since the CopyBits fails, but the DrawPicture succeeds, I can only
  31. assume that when the DrawPicture is executed, it is performing a CopyBits from
  32. BitMap to Bitmap instead of PixMap to BitMap.  I don't understand why this is
  33. the case, but if you really have it working, it must be.
  34.  
  35.     The second technique for printing PixMaps is to use the PostScript 'image'
  36. operator in combination with Quickdraw PicComments.  This will allow you to
  37. print the PixMap in grayscale instead of just having it mapped to black and
  38. white, which is not very pretty.  If you would like more information on this
  39. second technique, let me know.  I have code that does it.
  40.  
  41.     You might also want to get a copy of Joel Wests report on this problem, I
  42. know he offered it to anyone who was interested.
  43.  
  44.     I hope this helps, and if you still have questions, let me know.
  45.  
  46. ...ZZ
  47.  
  48. Macintosh Developer Technical Support
  49. ->Scott 'ZZ' Zimmerman  (1/12/88 Link 8)
  50.  
  51.  
  52.